import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
// @ts-ignore
import { getRouterData as getDefaultRouters } from "cpaas-front/lib/utils/router"; // @ts-ignore

import { getGlobalModalConfig } from 'cpaas-front/lib/models/global'; // @ts-ignore

import { getRouterData } from "../getRouterData";
export default (function (app) {
  return getGlobalModalConfig({
    getWrapperRouterData: function getWrapperRouterData(app) {
      if (getRouterData.beforeLoad) {
        getRouterData.beforeLoad(app);
      }

      return _objectSpread(_objectSpread({}, getDefaultRouters(app)), getRouterData(app));
    },
    app: app
  });
});
